
@extends('home/master')
@section('title','堆糖生活家--帮帮中心')
@section('style')
    <link rel="stylesheet" href="{{url('css/detail.5b474624.css')}}">
{{--    <script src="{{url('js/lib.bundle.a6ecd17d.js')}}"></script>--}}
    <style>
        .woo-swb form{
            margin-left:500px;
        }
        .woo-swb form select{
            width:100px;
            height:30px;
            line-height:30px;
            text-align: center;
            font-size:20px;
            margin-top:10px;
        }
        .woo-swb form input{
            padding-top:2px;
            margin-left:5px;
            width:50px;
            height:30px;
            font-size:15px;
        }
        .li1{
            font-size:21px;
            color: black;
        }
        .li2{
            width:800px;
            font-size:18px;
            color: black;
        }
        .dadivv{
            font-size:25px;
            margin-top:20px;
            margin-left:500px;
            font-weight: bold;
            margin-botton:20px;
        }
        .daul{
            margin-top:20px;
            margin-left:300px;
        }
    </style>
@endsection
@section('content')
<div id="content">
    <div class="layer layer-full oh">
        <div class="tube">
            <div id="woo-holder">
                <a name="woo-anchor"></a>
                <div class="preview-action clr">
        </div>

                <div class="woo-swb woo-cur" style="display: block;min-height:800px;height:auto;margin-top:50px;">
                    <form action="javascript:void(0)" method="post" class="form-horizontal" id="form" />
                    <input class="ipt" id="kw" autocomplete="off" name="kw" type="text" placeholder="对话和查找图片" value="" style="width:500px;height:45px">
                    <button type="submit" id="btnts" style="height:45px;width:45px">搜索</button>
                    </form>
                    <div style="width:600px;height:400px;border:1px solid red ;margin-left:490px;margin-top:30px;color:red;text-align:center;font-size:50px;line-height: 300px" id="kws">
                    </div>
                    <script>
                        var kw = document.getElementById('kw');
                        var kws = document.getElementById('kws');
                        $("#btnts").click(function(){
                                var value = $('#kw').val();
                                $.ajax({
                                    type: 'post',
                                    dataType: 'json',
//                        data: $('#sfrom').serialize(),
                                    data:{'data':value,'_token':'{{csrf_token()}}'},
                                    url: '{{url('user/etst')}}',
                                    success: function (data) {
                                        if(data.url != null) {
                                            kws.innerHTML = data.text;
                                            kws.innerHTML = data.url;
                                            kws.innerHTML = '请复制url地址';
                                        }else{
                                            kws.innerHTML = data.text;
                                        }
                                    }
                                })
                            }
                        )
                    </script>
                </div>
            </div>
        </div>
    </div>

{{--创建想自己的专辑--}}

    </div>
@endsection